const storage = {
    KEY_USER: 'user',
    KEY_TOKEM: 'token',



    set(key, value) {
        sessionStorage.setItem(key, JSON.stringify(value))
    },
    get(key) {
        let str = sessionStorage.getItem(key)
        if (str) {
            return JSON.parse(str)
        }
        return null
    },

    remove(key) {
        sessionStorage.removeItem(key)
    }
}

export default storage;